package com.qf.forumproject.utils;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author manchi520
 * @date 2022/7/25
 * @Time: 21:44
 * @apiNote
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
//查询所有文章返回的结果封装
public class ResultVo {
    private Integer id;
    private String bid;
    private String title;
    private String content;
    private Integer views;
    private String username;
    private String category;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmt_create;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmt_update;
}
